require "json"

package = JSON.parse(File.read(File.join(__dir__, "package.json")))

Pod::Spec.new do |s|
  s.name         = "react-native-onepush"
  s.version      = package["version"]
  s.summary      = package['description']
  s.author       = package['author']
  s.homepage     = package['homepage']
  s.license      = package['license']
  s.ios.deployment_target = "7.0"
  s.tvos.deployment_target = "9.0"
  s.source       = { :git => "https://gitee.com/fujm/react-native-onepush.git", :tag => "v#{s.version}" }
  s.source_files  = "ios/**/*.{h,m}"
  s.frameworks = 'PushKit', 'UserNotifications', 'CoreLocation'
  s.static_framework = true
  s.dependency "React-Core"
  s.dependency "JPush"
end
